home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d13
/
pcrjan89.arc
/
FITS.BAS
< prev
next >
Wrap
BASIC Source File
|
1990-03-21
|
699b
|
18 lines
10 KEY OFF
20 INPUT "High density (1.2 or 1.44MB)? <Y/N> ";ANSWER$
30 IF ANSWER$="Y" OR ANSWER$="y" THEN CLUSTSIZE=512 ELSE CLUSTSIZE=1024
40 CLS
50 OPEN "C:\DOS\FIT.TXT" FOR INPUT AS #1
60 WHILE NOT EOF(1)
70 INPUT #1,RCD$:PRINT RCD$
80 WHILE LEN(RCD$)=39
90 CLUSTCNT=(VAL(MID$(RCD$,14,8)))/CLUSTSIZE
100 IF INT(CLUSTCNT)<CLUSTCNT THEN CLUSTCNT=INT(CLUSTCNT)+1
110 BYTECNT=BYTECNT+(CLUSTCNT*CLUSTSIZE)
120 RCD$=""
130 WEND 'LEN(RCD$)=39
140 WEND 'NOT EOF(1)
150 CLOSE:KILL "C:\DOS\FIT.TXT"
160 PRINT "The above file(s) require";BYTECNT;"bytes using";CLUSTSIZE;"-byte clusters.";CHR$(13)
170 SYSTEM